<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			let depts = [
			    {
			        deptno:10,
			        dname:'研发部',
			        loc:'北京市'
			    },{
			        deptno:20,
			        dname:'销售部',
			        loc:'广州市'
			    },{
			        deptno:30,
			        dname:'财务部',
			        loc:'成都市'
			    }
			];
			for(let i=0;i<depts.length;i++){
				console.info(depts[i].deptno);
				console.info(depts[i].dname);
				console.info(depts[i].loc);
			}
			
		</script>
	</body>
</html>